package com.xbongbong.saas.enums.dictionary;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * @Author: wujian
 * @Description: 退货单状态枚举
 * @Date: 下午10:14 2021/1/28
 * @Param:
 * @return:
 **/
@Getter
public enum ReturnStatusEnum {
    //审核中
    UNDER_REVIEW("1","enum.returnStatus.name.under_review","underReview"),
    //已作废
    ABOLISHED("2","enum.returnStatus.name.abolished","abolished"),
    //处理中
    PROCESSING("3","enum.returnStatus.name.processing","processing"),
    //已完成
    COMPLETED("4","enum.returnStatus.name.completed","completed"),
    //已关闭
    CLOSED("5","enum.returnStatus.name.closed","closed"),
    ;
    private String code;
    private String name;
    private String attr;


    ReturnStatusEnum(String code, String name, String attr) {
        this.code = code;
        this.name = name;
        this.attr = attr;
    }
    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
